﻿@{
    Layout = null;
}
@using CNKI.TPI.Web.Search.Model;
@using CNKI.TPI.Web.Base
<script>
    function searchQuery() {
        var searchname = $("#searchname").val();
        $("#hidename").val(searchname);
        searchQueryData()
    }
    $(function () {
        searchQuery();
    })
    function searchQueryData() {
        $.ajax({
            type: "GET",
            url: timestamp("@Html.Raw(Url.Action("CategoryQuerySearch", "Admin_Topic"))"),
            data: { "dbname": $('#hidename').val(), "nodecode": $('#ClsCode').val(), "pageIndexNow": $('#pageIndexNow').val(), "navCode": $('#NavCode').val() },
            beforeSend: function () { $("#loading").show(); },
            success: function (msg) {
                $("#queryList").html("");
                $("#queryList").html(msg);
                $("#loading").hide();
            },
            error: function (e)
            { $("#loading").hide(); }
        })
    }
    //点击分页
    function searchPageNew(n) {
        $('#pageIndexNow').val(n);
        searchQuery();
    }
    $(document).keydown(function (event) {
        if (event.keyCode == 13) {
            searchQuery();
        }
    });
    function backlist() {
        //;
        ajaxLoad('initload', "@Html.Raw(Url.Action("CategorySet", "Admin_Topic"))?name=" + escape($("#NavName").val()) + "&code=" + $("#NavCode").val())

       }
</script>
<div class="wrapR-h" style="padding-top: 20px; padding-bottom: 20px">
     <h3 class='box-h'>分类导航管理—建立分类—配置分类条件 </h3>
    <h3>分类： @ViewBag.CLSName</h3>
    <br />
     <input id="ClsName" type="hidden" value="@ViewBag.ClSName" />
    <input id="ClsCode" type="hidden" value="@ViewBag.CLSSysCode" />
        <input hidden="hidden" value="@ViewBag.NavCode" id="NavCode" type="hidden" />
    <input hidden="hidden" value="@ViewBag.NavName" id="NavName" type="hidden" />
    <input type="hidden" id="pageIndexNow" name="pageIndexNow" value="1" />
    <div class="form form-h">
        <div class="f-gp">
            <div class="f-lb">
                <label class="f-label">数据库名称：</label>
            </div>
            <div class="f-ct f-ml">
                <input type="text" class="f-text span4" id="searchname" maxlength="255">
                <input type="hidden" class="f-text span4" id="hidename">
                <input type="button" class="btn btn-m btn-warn-f btn-submit" onclick="searchQuery()" value="检索"/>
             
            </div>
        </div>

    </div>
</div>
 
<div class="wrapR-c">
    <div id="queryList">
    </div>
</div>




